﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using FeedAntGame.Sprite.Event;

namespace FeedAntGame.Sprite.Combo
{
    abstract class ComboBaseSprite : EventSprite
    {
        protected Game game;

        public Game Game
        {
            get { return game; }
        }

        public override Vector2 Direction
        {
            get { return speed; }
        }
        public override STATE_TYPE State
        {
            get
            {
                return _state;
            }
            set
            {
                _state = value;
            }
        }
        
        /************************************************************************/
        /*                      Constructor                                                                     */
        /************************************************************************/
        public ComboBaseSprite(Texture2D background, Vector2 position, Point frameSize,
            int collisionOffset, Point sheetSize, Vector2 speed, string collisionCueName, float scale, Game game)
            : base(null,background,null,null, position, frameSize, collisionOffset,
            sheetSize, speed, collisionCueName, scale)
        {
            this.game = game;            
        }


        /************************************************************************/
        /*                      Functions                                                                     */
        /************************************************************************/
        public override void Update(GameTime gameTime, Rectangle clientBounds)
        {
            base.Update(gameTime, clientBounds);
        }
        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            if(textureImage!=null)
                base.Draw(gameTime, spriteBatch);            
        }
    }
}
